package com.ruoyi.shop.api;

import com.ruoyi.common.core.constant.SecurityConstants;
import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.common.core.web.page.TableDataInfo;
import com.ruoyi.shop.api.domain.CheShop;
import com.ruoyi.shop.api.factory.RemoteCouponFallbackFactory;
import com.ruoyi.shop.api.factory.RemoteRemoteShopFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(contextId = "remoteCouponService", value = ServiceNameConstants.SHOP_SERVICE,fallbackFactory = RemoteCouponFallbackFactory.class)

public interface RemoteCouponService {

    @GetMapping(value = "/coupon/{id}")
    AjaxResult getInfo(@PathVariable("id") Long id, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);

//    @GetMapping(value = "/coupon/list/{ids}")
//    AjaxResult getListByIds(@PathVariable("ids") Long[] ids, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);


}
